<?php

namespace App\Http\Controllers\Auth;

use App\Http\Controllers\Controller;
use Illuminate\Foundation\Auth\AuthenticatesUsers;

class LoginController extends Controller
{
    /*
    |--------------------------------------------------------------------------
    | Login Controller
    |--------------------------------------------------------------------------
    |
    | This controller handles authenticating users for the application and
    | redirecting them to your home screen. The controller uses a trait
    | to conveniently provide its functionality to your applications.
    |此控制器处理对应用程序的用户进行身份验证，以及

|将它们重定向到主屏幕。控制器使用特性

|方便地为您的应用程序提供其功能。
    */

    use AuthenticatesUsers;//对用户进行身份验证

    /**
     * Where to redirect users after login.
     *登录后重定向用户的位置。
     * @var string
     */
    protected $redirectTo = '/home';

    /**
     * Create a new controller instance.
     *创建新的控制器实例。
     * @return void
     */
    public function __construct()
    {
        $this->middleware('guest')->except('logout');
    }
   
}
